package eurostar.com.functional;

import java.io.FileInputStream;
import java.lang.reflect.Field;

import net.sf.cglib.core.ClassNameReader;

import org.apache.xerces.impl.xpath.XPath;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ByIdOrName;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.How;


public class pageobjects  {  	
	public WebDriver driver=null;
	@FindBy(how=How.XPATH,using="html/body/div[1]/div[4]/div[1]/form/div[2]/p[1]/input")
	private WebElement from; 
    @FindBy(how=How.XPATH,using="html/body/ul/li[2]/a")
    private WebElement viewall;
    @FindBy(how=How.XPATH,using="html/body/ul/li[2]/a")
    private WebElement linktext;
    
    public void journey(){
	   from.sendKeys("");
      driver.switchTo().frame(viewall); 
      linktext.click();
    }
}



